<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link href="css/bootstrap.css" rel="stylesheet" media="screen">
<title>账号注册</title>
</head>
<script language="javascript">
		function test(){
		var pwd = document.getElementById("pwd").value;
		var repwd = document.getElementById("repwd").value;
		if(pwd != repwd){
			alert("两次密码不一致");
		}else
			{
			document.getElementById("frm").submit();
			}
			
			
		}
</script> 
<body >
<br><br><br><br><br><br><br><br><br><br><br>
<form id="frm" action="./enroll" method="get">
	<div class = "container">
		<div class="row">
		
			<div class = "col-xs-4"></div>
			<div class = "col-xs-4">
				<h2>闽江(福建大学)教师请注册</h2>	<br>		
				
				<input type="text"  name="user" class="form-control"  onKeyUp="value=value.replace(/[\W]/g,'')" placeholder="输入想用的账号" required><br>
			
				<input type="text" name = "ming"class="form-control" onkeyup="this.value=this.value.replace(/[^\u4e00-\u9fa5]/g,'')" placeholder="请输入您的姓名(汉字)" required><br>
				 
				<input type="text"  name = "num"class="form-control" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" placeholder="请输入您的教工号" required><br>

				<input type="password"  name="pwd" id="pwd" class="form-control" placeholder="设置密码" required><br>
				
				<input type="password" id="repwd" class="form-control" placeholder="确认密码" required><br>

				<input type="button" value="注册" class="btn btn-info btn-lg btn-block" onclick="test()"><br>
				
			</div>
			<div class = "col-xs-4"></div>
		</div>
	</div>





</form>
</body>
</html>